package spittr.data;

import org.springframework.stereotype.Repository;
import spittr.model.Spittle;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Repository
public class MockSpittleRepository implements SpittleRepository {
    @Override
    public List<Spittle> findSpittles(long max, int count) {
        List<Spittle> spittleList = new ArrayList<>();
        spittleList.add(new Spittle("Spittles goes fourth!", new Date()));
        spittleList.add(new Spittle("Spittles spittle spittle", new Date()));
        spittleList.add(new Spittle("Here's another spittle", new Date()));
        spittleList.add(new Spittle("Hello world! The first ever spittle!", new Date()));
        return spittleList;
    }

    @Override
    public Spittle findOne(long id) {
        return new Spittle("Hello", new Date());
    }
}
